<?php
/**
 * Holds class Mvc_View_JSON
 *
 * @author daantimmer
 *
 * @package Library
 * @subpackage Mvc
 */

/**
 * A view that uses json_encode to return all data as JSON encoded
 *
 * returns a string in this form: var json="*jasonstring*";
 *
 * @author daantimmer
 */
class Mvc_View_PureJSON extends Mvc_View{
	
	/**
	 * @see Mvc_View_Interface::render()
	 */
	public function render(){
		return json_encode($this->_var);
	}
}